package math;

public class VariableReferenceNode implements MathNode
{
    String symbol;

    VariableReferenceNode(String symbol)
    {
        this.symbol = symbol;
    }

    @Override
    public String getExpressionString()
    {
        return symbol;
    }

    @Override
    public String getName()
    {
        return symbol;
    }

    @Override
    public String toString()
    {
        return getClass().getName() + "<" + symbol + ">";
    }
}
